package com.caption.core.properties;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @description: TODO
 * @author: 码农
 * @date: 2022-01-01 22:59:37
 */
@Component
public class SignProperties {
   public static String jwtSignKey = "Aoqi+128dd@dd8";

    @Value("${user.jwt.signKey:beggsad1234Ad@688}")
    public void setJwtSignKey(String jwtSignKey) {
        if (StringUtils.isNotBlank(jwtSignKey)) {
            SignProperties.jwtSignKey = jwtSignKey;
        }
    }
}
